#!/bin/bash
lineNo=1
while read question; do
        # test_output 文件奇数行 Answer: 字
	q=$(echo $question | awk '{print substr($0,9,1)}')
	# 汉字排在每行第9个字符. cut -c 9 很简单,但我机器上测试结果返回不了汉字,所以用了awk
	read answer
        # 读取test_output 文件偶数行首字符到变量a
        a=$(echo $answer | awk '{print substr($0,1,1)}')
        if [[ $q != $a ]]; then
		echo $lineNo $q $a
	fi
	lineNo=$(($lineNo + 2))
done
